import java.io.*;
import java.net.*;

import ro.pub.cs.dfsa.client.framework.FrameList;

public class SocketConnectorCallbackObject implements CallbackInterface{
	private Socket socket;
	public FrameList frame;
	
	public SocketConnectorCallbackObject(Socket socket, FrameList frame) {
		this.socket = socket;
		this.frame = frame;
	}
	
	public void sendResult(Object object){
		object = (Object)frame;
		
		try{
			ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
			oos.writeObject(object);
			oos.close();
		} catch (Exception e){}
	}
}
